package com.yjm.test.Spring5.ch4.applicationEvent;

import org.springframework.context.ApplicationListener;

public class MessageEventListener implements ApplicationListener<MessageEvent> {

	@Override
	public void onApplicationEvent(MessageEvent event) {
		System.out.println(this.getClass().getCanonicalName() + " got msg:" + event.getMessage());
	}

}
